#include "FigureDraw.h"
#include "GdiplusGraphics.h"
#include "CairoGraphics.h"
#include "CImgGraphics.h"
#include <string>

void main()
{
	//Chon 1 trong 3 thu vien de ve
	FigureDraw *f = new GdiPlusGraphics();
	//FigureDraw *f = new CairoGraphics();
	//FigureDraw *f = new CImgGraphics();

	//Ve duong thang, hinh chu nhat, va ellipse
	f->drawLine(100,100,400,300,"rgb(255, 0, 0)",5);
	f->drawRectangle(150,150,200,100,"rgb(0, 0, 255)",1,"none");
	f->drawEllipse(250,200,60,30,"rgb(255, 255, 0)",3,"none");

	//Luu vao tap tin ten image.svg
	f->save("image.svg");

	//Mo tap tin image.svg len de tiep tuc ve
	//f->open("image.svg");
}